package com.hzjy.manage.vo;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzjy.common.annotation.Excel;
import com.hzjy.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 前端-用户对象 hzjy_user
 *
 * @author hzjy
 * @date 2020-08-07
 */
public class HzjyUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 密码 */
    @Excel(name = "密码")
    private String passWord;

    /** 用户类型【0：个人用户，1：企业用户】 */
    @Excel(name = "用户类型【0：个人用户，1：企业用户】")
    private Integer type;

    /** 【0：正常，1：封禁】 */
    @Excel(name = "【0：正常，1：封禁】")
    private Integer state;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String fullName;

    /** 企业名称 */
    @Excel(name = "企业名称")
    private String enterpriseName;

    /** 邮箱地址 */
    @Excel(name = "邮箱地址")
    private String email;

    /** 性别【0：未知，1：男，2：女】 */
    @Excel(name = "性别【0：未知，1：男，2：女】")
    private Long sex;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 微信状态【0：未绑定，1：已绑定】 */
    @Excel(name = "微信状态【0：未绑定，1：已绑定】")
    private Long wechatState;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String avatar;

    /** 信用代码 */
    @Excel(name = "信用代码")
    private String creditCode;

    /** 登录IP */
    @Excel(name = "登录IP")
    private String loginIp;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginDate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setPassWord(String passWord)
    {
        this.passWord = passWord;
    }

    public String getPassWord()
    {
        return passWord;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }

    public String getFullName()
    {
        return fullName;
    }
    public void setEnterpriseName(String enterpriseName)
    {
        this.enterpriseName = enterpriseName;
    }

    public String getEnterpriseName()
    {
        return enterpriseName;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setSex(Long sex)
    {
        this.sex = sex;
    }

    public Long getSex()
    {
        return sex;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setWechatState(Long wechatState)
    {
        this.wechatState = wechatState;
    }

    public Long getWechatState()
    {
        return wechatState;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setAvatar(String avatar)
    {
        this.avatar = avatar;
    }

    public String getAvatar()
    {
        return avatar;
    }
    public void setCreditCode(String creditCode)
    {
        this.creditCode = creditCode;
    }

    public String getCreditCode()
    {
        return creditCode;
    }
    public void setLoginIp(String loginIp)
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp()
    {
        return loginIp;
    }
    public void setLoginDate(Date loginDate)
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate()
    {
        return loginDate;
    }
    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("passWord", getPassWord())
                .append("type", getType())
                .append("state", getState())
                .append("nickName", getNickName())
                .append("fullName", getFullName())
                .append("enterpriseName", getEnterpriseName())
                .append("email", getEmail())
                .append("sex", getSex())
                .append("phone", getPhone())
                .append("wechatState", getWechatState())
                .append("openId", getOpenId())
                .append("remark", getRemark())
                .append("avatar", getAvatar())
                .append("creditCode", getCreditCode())
                .append("loginIp", getLoginIp())
                .append("loginDate", getLoginDate())
                .append("createDate", getCreateDate())
                .toString();
    }
}